#ifndef VOLUMETOOL_H
#define VOLUMETOOL_H

#include <QWidget>

namespace Ui {
class VolumeTool;
}

class VolumeTool : public QWidget
{
    Q_OBJECT

public:
    explicit VolumeTool(QWidget *parent = nullptr);
    ~VolumeTool();

    virtual void paintEvent(QPaintEvent *event);
    bool eventFilter(QObject*watched,QEvent*event);
    void calVolume();


private slots:
    void on_slienceBtn_clicked();
signals:
    void setMusicMuted(bool);
    void setMusicVolime(int volume);

private:
    Ui::VolumeTool *ui;
    bool isMuted;
    int volumeRatio;
};

#endif // VOLUMETOOL_H
